﻿<Window x:Class="UsingNonMVVMElements.MainWindowWebBrowserAdapter"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="481" Width="688"
        xmlns:vm="clr-namespace:UsingNonMVVMElements.ViewModel"  
        xmlns:local="clr-namespace:UsingNonMVVMElements"
        Title="MVVM Survival Guide">
    <Window.DataContext>
        <vm:MainWindowViewModel />
    </Window.DataContext>
    <Grid x:Name="LayoutRoot">
        <TextBox Height="27" HorizontalAlignment="Left" Margin="2,1,0,0" 
                 Name="textBoxUrl" VerticalAlignment="Top" Width="611"
                 Text="{Binding UserSuggestedSourcePage}" />
        <Button Content="Go" Height="27" HorizontalAlignment="Left" 
                Margin="615,1,0,0" Name="btnGo" VerticalAlignment="Top"
                Width="39" IsDefault="True" 
                Command="{Binding NavigateUrlCommand}" />
        <local:WebBrowserAdapter Source="{Binding SourcePage}" 
                    Margin="0,34,0,0" />
    </Grid>
</Window>